import java.io.File;

public class FileDemo01 {
    public static void main(String[] args) {
        String path = "E:"+File.separator+"thc_2025_java";
        File file = new File(path);

        printAllFiles(file);
    }

    private static void printAllFiles(File file){
        if (file.isDirectory()){
            File[] files =file.listFiles();
            if (files != null){
                for (File file1:files){
                    printAllFiles(file1);
                }
            }
        }else {
//            if (file.getName().endsWith(".doc")){}
            System.out.println(file.getAbsolutePath());

        }
    }
}
